package com.luozhili.thread.topic2;

/**
 *  实现Runnable 接口方式
 */
public class ThreadDemo3 implements Runnable {
    Integer count=0;
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println(++count);
        }
    }
}
